import {
  GraphQLList,
  GraphQLObjectType,
  GraphQLSchema,
  GraphQLString,
  GraphQLInt,
  GraphQLFloat,
  GraphQLEnumType,
  GraphQLNonNull
} from 'graphql';

export default new GraphQLObjectType({
  name: 'MoneyFlow',
  description: '大盘资金流向数据（东方财富）',
  fields: {
    date: {
      type: GraphQLString,
      description: '日期`20170702`'
    },
    time: {
      type: GraphQLString,
      description: '时分`11:22`'
    },
    data: {
      type: new GraphQLList(GraphQLFloat),
      description: '大盘资金流向'
    }
  }
})
